package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————学期类
 * @date 2019-12-17 14:34
 */
@Entity
@Table(name = "term")
public class Term implements Serializable {

    private static final long serialVersionUID = -469686925366566795L;

    @Id
    @GeneratedValue
    @Column(name = "term_Id")
    private Integer termId;//学期ID

    @Column(name = "termName", length = 32)
    private String termName;//学期名称

    @Column(name = "termDuration", length = 32)
    private String termDuration;//学期时间段

    @Column(name = "startTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp startTime;//开始时间

    @Column(name = "endTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp endTime;//结束时间

    @Column(name = "comment", length = 255)
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public Term() {
        //无参构造
    }


    public Integer getTermId() {
        return termId;
    }


    public void setTermId(Integer termId) {
        this.termId = termId;
    }


    public String getTermName() {
        return termName;
    }

    public void setTermName(String termName) {
        this.termName = termName;
    }

    public String getTermDuration() {
        return termDuration;
    }

    public void setTermDuration(String termDuration) {
        this.termDuration = termDuration;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Term [termId=" + termId + ", termName=" + termName + ", termDuration=" + termDuration + ", startTime="
                + startTime + ", endTime=" + endTime + ", comment=" + comment + ", recordTime=" + recordTime
                + ", updateTime=" + updateTime + "]";
    }


}
